home *** CD-ROM | disk | FTP | other *** search
/ FishMarket 1.0 / FishMarket v1.0.iso / fishies / 076-100 / disk_091 / porting < prev    next >
Text File  |  1992-05-06  |  3KB  |  83 lines

  1. Porting ADL to a new system shouldn't be much trouble, as long
  2. as the operating system is 'UN*X-like' enough.  MS-DOS is UN*X-like
  3. enough, as is AmigaDos.
  4.  
  5. After you have unpacked all of the shar files, look in the file
  6. include/adltypes.h.  There you will find #defines of the following:
  7.  
  8.     HPUX        1 if on an HP-UX, SysIII, or SysV computer, 0 otherwise
  9.     BSD        1 if on a 4.x BSD computer, 0 otherwise
  10.     MSDOS        1 if on an MS-DOS computer, 0 otherwise
  11.     AMIGA        1 if on an Amiga, 0 otherwise
  12.  
  13.     LATTICE        1 if Lattice 'C' was used to compile this, 0 otherwise
  14.     PCC        1 if a true K&R compiler was used, 0 otherwise
  15.  
  16.     DEBUG        1 if detailed error checking desired in adlrun,
  17.             0 otherwise
  18.  
  19.     HPTERM        1 if screen I/O is going to an HP terminal, 0 otherwise
  20.     ANSI        1 if screen I/O is going to an ANSI term, 0 otherwise
  21.     TERMCAP        1 if screen I/O will use termcap, 0 otherwise
  22.  
  23. Change these to reflect your system.  If your system is not one
  24. of those listed, examine the constants, etc. defined in the same file.
  25. Create a new name (MYSYS, or whatever) for the system, then create
  26. new constants and macros.
  27.  
  28. The files adlcomp/codegen.c, adlrun/adlmach.c, util/virtmem.c, and
  29. misc/adldebug.c include some code to compose integers from bytes -
  30. this may have to be changed on a machine which has other than 8
  31. bits per byte.
  32.  
  33. Once all changes to the .c files have been made, it will be
  34. necessary to modify the Makefile in each directory to reflect
  35.  
  36.     1.  Where the programs are to be installed
  37.     2.  Whether to use termcap, termlib, or nothing in adlrun
  38.  
  39. After all of this has been done, just type "make install" at this level, and
  40. then make all.  Everything should be made.  If you don't have the make
  41. utility available, follow these steps in compiling:
  42.  
  43.     1.  Compile the files in the util directory, like this:
  44.         cc -c *.c -O -I../include
  45.     2.  Compile the files in the adlcomp directory, like this:
  46.         cc -c *.c -O -I../include
  47.         cc -o adlcomp *.o ../util/*.o
  48.         mv adlcomp {wherever you want it}
  49.     3.  Compile the files in the adlrun directory, like this:
  50.         cc -c *.c -O -I../include
  51.         cc -o adlrun *.o ../util/*.o    {add -ltermcap or -ltermlib,
  52.                         if appropriate}
  53.         mv adlrun {wherever you want it}
  54.     4.  Compile the files in the misc directory, like this:
  55.         cc -c *.c -O -I../include
  56.         cc -o adldebug adldebug.o global.o ../util/v*.o
  57.         cc -o adltouch adltouch.o
  58.         mv adldebug adltouch {wherever you want them}
  59.     5.  You should now have adlcomp, adlrun, adldebug, and adltouch.
  60.         Go to the samples/demos directory.  For a test, do:
  61.         adlcomp tiny.adl -o tiny
  62.         This should create a file named "tiny" in this directory.  Type
  63.         adlrun tiny
  64.         You should now be running the sample dungeon.  If not, check
  65.         all of the above steps, and start over :-(.
  66.     6.  Finish compiling the dungeons:
  67.         adlcomp actdemo.adl -o actdemo
  68.         adlcomp chrdemo.adl -o chrdemo
  69.         adlcomp alldemo.adl -o alldemo
  70.         adlcomp newtiny.adl -o newtiny -i..
  71.         adlcomp baby.adl -o baby -i..
  72.         cd ../aard
  73.         adlcomp aard.adl -o aard -i..
  74.         cd ../mpu
  75.         adlcomp mpu -o mpu -i..
  76.     7.  Play the games :-).
  77.  
  78. Please send all changes to:
  79.  
  80.             Ross Cunniff
  81.             UUCP:    ...{ucbvax,hplabs}!hpda!cunniff
  82.             ARPA:    cunniff%hpda@hplabs.ARPA
  83.